<template>
  <div class="Index-box">
    <div class="StudentInformationT-box">
      <!-- 公用title -->
      <div class="tiTletopBox">
        <div class="Title overallSituationTitle">学生信息</div>
        <div class="tiTletopBoxz">
          <div>下次更新时间</div>
          <div>2024-12-12</div>
        </div>
      </div>
      <div class="StudentInformation1-box">
        <div class="StudentInformation1left">
          <div class="beijingBox"></div>
          <pieChartEcahrts :pieChartObj="pieChartObj" />
          <div class="StudentInformation1left-btn">
            <div class="tion1btnleft">
              <div class="dian"></div>
              <div class="wenzi">男: 100%</div>
            </div>
            <div class="tion1btnright">
              <div class="dian"></div>
              <div class="wenzi">女: 100%</div>
            </div>
          </div>
        </div>
        <div class="StudentInformation2left">
          <div class="Studentop">义务教育-男女比例</div>
          <contrastEcahrts :contrastObj="contrastObj" />
          <div class="Studenbom">
            <div class="left">男: 100%</div>
            <div class="right">女:100%</div>
          </div>
        </div>
        <div class="StudentInformation3left">
          <div class="Studentop">非义务教育-男女比例</div>
          <contrastEcahrts :contrastObj="contrastObj" />
          <div class="Studenbom">
            <div class="left">男: 100%</div>
            <div class="right">女:100%</div>
          </div>
        </div>
      </div>
      <div class="StudentInformation2-box">
        <lineChartEchrats :barChartList="barChartList" />
      </div>
      <div class="StudentInformation3-box">
        <div class="SntInformation3Img"></div>
        <meiguiEcahrts :meiguiList="meiguiList" />
      </div>
    </div>
    <div class="StudentInformationB-box">
      <!-- 公用title -->
      <div class="tiTletopBox">
        <div class="Title overallSituationTitle">缴费服务</div>
        <div class="tiTletopBoxz">
          <div>下次更新时间</div>
          <div>2024-12-12</div>
        </div>
      </div>
      <div class="TeacherInformation1-box">
        <div class="jsrs">消防站点</div>
        <div class="kapianBox">
          <div class="kapianBoxItem">1</div>
          <div class="kapianBoxItem">2</div>
          <div class="kapianBoxItem">2</div>
          <div class="kapianBoxItem">2</div>
        </div>
      </div>
      <div class="StudentInformationB-btn">
        <div class="StudentInformationBImg"></div>
        <pieChartEcahrtsgongyong :pieChartObj="pieChartObj1" />
      </div>
    </div>
  </div>
</template>
<script setup>
import lineChartEchrats from "@/components/lineChartEchrats.vue"
import meiguiEcahrts from "@/components/meiguiEcahrts.vue"
import pieChartEcahrts from "@/components/pieChartEcahrtsCun.vue"
import contrastEcahrts from "@/components/contrastEcahrts.vue"
import pieChartEcahrtsgongyong from "@/components/pieChartEcahrtsgongyong.vue"

const pieChartObj1 = ref({
  colorList: [
    "red",
    "#45a5ff",
    "#81c926",
    "#7585a2",
    "#fad337",
    "#f2637b",
    "#ff8e49",
    "#37cbcb"
  ],
  radius: ["40%", "58%"],
  center: ["29.7%", "50.5%"],
  danwei: "%",
  pieChartList: [
    {
      value: 100,
      name: "伙食费",
      age: ""
    },
    { value: 80, name: "社会实践费", age: "" },
    { value: 60, name: "校服费", age: "" },
    { value: 60, name: "教材费", age: "" },
    { value: 60, name: "教辅材料费", age: "" },
    { value: 60, name: "社会保险费", age: "" }
  ]
})
const pieChartObj = ref({
  radius: ["35%", "55%"],
  center: ["50%", "45%"],
  pieChartList: [
    {
      value: 100,
      name: "现有学校"
    },
    { value: 80, name: "在建学校" },
    { value: 60, name: "带规划学校" }
  ]
})
const barChartList = ref({
  xData: ["一年级", "二年级", "三年级", "四年级", "五年级", "六年级"],
  seriesObj: {
    教师详情: [10, 20, 30, 40, 50, 60],
    学生详情: [20, 30, 40, 50, 60, 70]
  },
  // 从浅到深(先量上面再量下面)
  colorList: {
    教师详情: ["rgba(83, 202, 255)", "rgba(83, 202, 255)"],
    学生详情: ["rgba(255, 167, 38)", "rgba(255, 167, 38 )"]
  },
  danwei: "单位(人)",
  isShowlegend: true
})
const meiguiList = ref([
  {
    name: "职业学校",
    value: 700
  },
  {
    name: "民办学校",
    value: 500
    // itemStyle: {
    //   borderColor: "#fff",
    //   borderWidth: 2,
    //   shadowBlur: 20,
    //   shadowColor: "#41a8f8",
    //   shadowOffsetx: 25,
    //   shadowOffsety: 20
    //   // color: "rgba(83, 202, 255,.5)"
    // }
  },
  {
    name: "公办学校",
    value: 400
    // itemStyle: {
    //   borderColor: "#fff",
    //   borderWidth: 2,
    //   shadowBlur: 20,
    //   shadowColor: "#41a8f8",
    //   shadowOffsetx: 25,
    //   shadowOffsety: 20
    //   // color: "rgba(83, 202, 255,.5)"
    // }
  }
])
const contrastObj = ref({
  grid: {
    top: "0",
    bottom: "0",
    left: "10%",
    right: "10%"
  },
  // 男生比例
  data: [30]
})
</script>
<style scoped lang="less">
.StudentInformationT-box {
  width: 100%;
  height: 594px;
  background: url("@/assets/StudentInformation/XXC_XSXX.svg") no-repeat center;
  background-size: 100% 100%;
  .StudentInformation1-box {
    width: 100%;
    height: 170px;
    position: relative;
    .StudentInformation1left {
      width: 150px;
      height: 150px;
      position: absolute;
      left: 12px;
      top: 12px;
      border-radius: 3px;
      .beijingBox {
        position: absolute;
        width: 92px;
        height: 92px;
        background-color: pink;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        background: url("@/assets/StudentInformation/BJ_HUANXINGTU2.svg")
          no-repeat center;
        background-size: 100% 100%;
      }
      .StudentInformation1left-btn {
        width: 100%;
        height: 30px;
        position: absolute;
        bottom: 0;
        display: flex;
        .tion1btnleft {
          width: 50%;
          height: 30px;
          display: flex;
          align-items: center;
          .dian {
            margin-left: 5px;
            width: 8px;
            height: 8px;
            background: url("@/assets/StudentInformation/LANDIAN.svg") no-repeat
              center;
            background-size: 100% 100%;
          }
          .wenzi {
            color: #fff;
            margin-left: 5px;
            font-size: 14px;
            white-space: nowrap; /*规定段落中的文本不进行换行 */
          }
        }
        .tion1btnright {
          width: 50%;
          height: 30px;
          display: flex;
          align-items: center;
          .dian {
            margin-left: 5px;
            width: 8px;
            height: 8px;
            background: url("@/assets/StudentInformation/HUANGDIAN.svg")
              no-repeat center;
            background-size: 100% 100%;
          }
          .wenzi {
            color: #fff;
            margin-left: 5px;
            font-size: 14px;
            white-space: nowrap; /*规定段落中的文本不进行换行 */
          }
        }
      }
    }
    .StudentInformation2left {
      width: 220px;
      height: 72px;
      // background-color: red;
      position: absolute;
      left: 168px;
      top: 12px;
      border-radius: 3px;
      .Studentop {
        color: #ffffff;
        // width: 100%;
        height: 30px;
        position: absolute;
        top: 0px;
        font-size: 12px;
        line-height: 35px;
        margin-left: 20px;
      }
      .Studenbom {
        position: absolute;
        width: 100%;
        height: 30px;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #fff;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
      }
    }
    .StudentInformation3left {
      width: 220px;
      height: 72px;
      // background-color: red;
      position: absolute;
      left: 168px;
      top: 90px;
      border-radius: 3px;
      .Studentop {
        color: #ffffff;
        // width: 100%;
        height: 30px;
        position: absolute;
        top: 0px;
        font-size: 12px;
        line-height: 35px;
        margin-left: 20px;
      }
      .Studenbom {
        position: absolute;
        width: 100%;
        height: 30px;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #fff;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
      }
    }
  }
  .StudentInformation2-box {
    width: 100%;
    height: 180px;
  }
  .StudentInformation3-box {
    width: 100%;
    height: 185px;
    position: relative;
    .SntInformation3Img {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 140px;
      height: 140px;
      background: url("@/assets/StudentInformation/BJ_MEIGUITU.svg") no-repeat
        center;
      background-size: 100% 100%;
      display: flex;
      align-items: center;
    }
  }
}
.TeacherInformation1-box {
  margin: auto;
  margin-top: 10px;
  width: 376px;
  height: 38px;
  background: url("@/assets/StudentInformation/BJ_XFZD.svg") no-repeat center;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  .jsrs {
    font-size: 12px;
    margin-left: 75px;
    width: 50px;
    height: 20px;
    line-height: 20px;
    color: #ffffff;
    // background-color: red;
  }
  .kapianBox {
    width: 180px;
    height: 25px;
    line-height: 25px;
    display: flex;
    flex-direction: row-reverse; /* 设置主轴方向为从右到左 */
    .kapianBoxItem {
      margin-right: 2px;
      width: 20px;
      line-height: 25px;
      text-align: center;
      height: 25px;
      color: #fff;
      font-size: 18px;
      background-color: pink;
      background: url("@/assets/TeacherInformation/xiaokuang.svg") no-repeat
        center;
      background-size: 100% 100%;
    }
  }
}
.StudentInformationB-box {
  margin-top: 10px;
  width: 100%;
  height: 364px;
  background: url("@/assets/StudentInformation/XXC_JFFW.svg") no-repeat center;
  background-size: 100% 100%;
  .StudentInformationB-btn {
    margin-top: 35px;
    width: 100%;
    height: 220px;
    position: relative;
    .StudentInformationBImg {
      position: absolute;
      width: 236px;
      height: 220px;
      background-color: rgba(65, 211, 72, 0.3);
      background: url("@/assets/StudentInformation/BJ_HUANXINGTU.svg") no-repeat
        center;
      background-size: 100% 100%;
    }
  }
}
</style>
